// the color for threads.  Used for the manufacturer color listing, and
// for threads, which are a color + symbol mapping

#import <Cocoa/Cocoa.h>

@interface BWThreadColor : NSObject <NSCoding, NSCopying>
{
    NSString    *manufacturerName;
    NSString    *manufacturerID;  // color number
    NSColor     *color;
    NSString    *name;

    NSImage *cachedSwatch;
}

- (NSString *) manufacturerName;
- (void) setManufacturerName: (NSString *) name;

- (NSString *) manufacturerID;
- (void) setManufacturerID: (NSString *) mid;

- (NSString *) name;
- (void) setName: (NSString *) name;

- (NSColor *) color;
- (void) setColor: (NSColor *) color;

- (NSImage *) colorSwatch;

- (NSComparisonResult) compareManufacturerID: (BWThreadColor *) thing2;
- (NSComparisonResult) compareColor: (BWThreadColor *) thing2;
- (NSComparisonResult) compareName: (BWThreadColor *) thing2;

- (BOOL) isEqualTo: (id) object;

@end // BWThreadColor

